﻿using System;
using System.Data;
using System.Linq;

namespace LayerEntity.Persona.RecursosHumanos
{
    public class EAreas
    {
        #region Construcores
        public EAreas(IDataRecord record)
        {
            this.IdArea = (int)record["id_area"];
            this.Descripcion = record["des_area"].ToString();
            this.IdEstado = (int)record["id_estado"]; 
        }

        public EAreas()
        {
            this.IdArea = 0;
            this.Descripcion = string.Empty ;
            this.IdEstado = 0;
        }

        #endregion

        #region Propiedades

        public int IdArea { get; set; }

        public string Descripcion { get; set; }

        public int IdEstado { get; set; }
        #endregion
    }
}